/**
 * @author "Vlad Sumtsov"
 */
package com.corewillsoft.fireflies.gamelaws;

public class LawFactory {

	public static BaseLaw getLaw(LawType lawType) {
		BaseLaw law = null;

		switch (lawType) {
		case COLLISION:
			law = new CollisionLaw();
			break;
		case FAN_FIREFLY:
			law = new FanFireflyLaw();
			break;
		case FINGER_FORCE:
			law = new FingerForceLaw();
			break;
		case FROG_FIREFLY:
			law = new FrogFireflyLaw();
			break;
		case GRAVITY:
			law = new GravityLaw();
			break;
        case INERTIA:
            law = new InertiaLaw();
            break;
		case HORNET_FIREFLY:
			law = new HornetFireflyLaw();
			break;
		case PORTAL_FIREFLY:
			law = new PortalFireflyLaw();
			break;
		case WALL_FIREFLY:
			law = new WallFireflyLaw();
			break;
         case UPDATE:
            law = new UpdateLaw();
            break;
		default:
			law = null;
			break;
		}
		return law;
	}
}
